<?php

class indexControl extends setupControl {

    function index() {
        $this->display();
    }

    //创建单入口文件
    function delcache() {
        $files = glob($_GET['temp'].'/*');
        foreach ($files as $v) {
            $fileName = basename($v);
            if (in_array($fileName, array("log", "session"))) {
                continue;
            }
            dir::del($v);
        }
        $this->success("缓存目录已经全部删除成功");
    }

}